package com.pccw.ssh.testFactory;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringBeanFactoryMethodII {

	private static ApplicationContext ctx;

	static {
		ctx = new ClassPathXmlApplicationContext(new String[] {
				"applicationContext.xml", "applicationContext-action.xml",
				"applicationContext-dao.xml" });
	}

	public static Object getBean(String name) {
		return ctx.getBean(name);
	}

}
